
<p> 作业内容 </p>
<p>
<a href="<?php $_SERVER['REQUEST_URL'] ?>?action=add">添加</a> 
<a href="<?php $_SERVER['REQUEST_URL'] ?>?action=modify">修改</a> 
<a href="<?php $_SERVER['REQUEST_URL'] ?>?action=delete">删除</a>
</p>
<?php
	//print_r($_SERVER);
	//print_r($_GET["action"]);
?>

<?php
//处理添加作业
if ($_GET["action"] == 'add') {
	echo "add";
}
//

?>

<?php
//处理修改作业
if ($_GET["action"] == 'modify') {
	echo "modify";
}
//

?>

<?php
//处理删除作业
if ($_GET["action"] == 'delete') {
	echo "delete";
}
//

?>